Decoding apparatus and method, and program

ABSTRACT

The present technology relates to a decoding apparatus, a decoding method and a program which make it possible to obtain sound with higher quality. 
     A demultiplexing circuit demultiplexes an input code string into a gain code string and a signal code string. A signal decoding circuit decodes the signal code string to output a time series signal. A gain decoding circuit decodes the gain code string. That is, the gain decoding circuit reads out gain values and gain inclination values at predetermined gain sample positions of the time series signal and interpolation mode information. An interpolation processing unit obtains a gain value at each sample position between two gain sample positions through linear interpolation or non-linear interpolation according to the interpolation mode based on the gain values and the gain inclination values. A gain applying circuit adjusts a gain of the time series signal based on the gain values. The present technology can be applied to a decoding apparatus.

TECHNICAL FIELD

The present technology relates to a decoding apparatus, a decodingmethod and a program, and, more particularly, a decoding apparatus, adecoding method and a program which make it possible to obtain soundwith higher quality.

BACKGROUND ART

In related art, in an audio coding technique of moving picture expertsgroup (MPEG) advanced audio coding (AAC) (ISO/IEC14496-3:2001), it ispossible to record auxiliary information of downmixing or dinamic rangecompression (DRC) in a bit stream and use the auxiliary information at areproduction side according to an environment of the reproduction side(see, for example, Non-Patent Literature 1).

Use of such auxiliary information enables an audio signal to bedownmixed at the reproduction side or volume to be appropriatelycontrolled through the DRC.

CITATION LIST Non-Patent Literature

Non-Patent Literature 1: Information technology Coding of audiovisualobjects Part 3: Audio (ISO/IEC 14496-3:2001)

SUMMARY OF INVENTION Technical Problem

For example, with the above-described coding technique, it is possibleto designate DRC gain information for volume control as auxiliaryinformation of DRC in units of a frame of an audio signal, and, at areproduction side, by correcting volume of the audio signal based onthis DRC gain information, it is possible to obtain sound withappropriate volume.

However, a gain indicated by such DRC gain information becomes the samevalue for each sample within one frame of the audio signal which is atemporal signal. That is, all samples included in one frame arecorrected with the same gain.

Therefore, for example, when a magnitude of the gain indicated by theDRC gain information largely changes between frames, portions oftemporal waveforms of the audio signal become discontinuous between theframes, which may cause degradation in auditory terms.

The present technology has been made in view of such circumstances, andis directed to making it possible to obtain sound with higher quality.

Solution to Problem

A decoding apparatus according to a first aspect of the presenttechnology includes: a gain readout unit configured to read out encodedgain values at at least two gain sample positions of a time seriessignal; an interpolation information readout unit configured to read outinterpolation information indicating whether the gain value at eachsample position of the time series signal is obtained through linearinterpolation or obtained through non-linear interpolation; and aninterpolation processing unit configured to obtain the gain value ateach sample position located between the two gain sample positions ofthe time series signal based on the gain values at the gain samplepositions through linear interpolation or non-linear interpolationaccording to the interpolation information.

The gain readout unit can be caused to further read out gain inclinationvalues indicating inclination of the gain values at the gain samplepositions. When the gain value is obtained through non-linearinterpolation, the interpolation processing unit can be caused to obtainthe gain value at each sample position located between the two gainsample positions based on the gain values and the gain inclinationvalues at the gain sample positions.

The decoding apparatus can further include: a limiting processing unitconfigured to perform limiting processing on the gain value obtainedthrough non-linear interpolation so that the gain value becomes a valueequal to or greater than a predetermined lower limit or a value equal toor less than a predetermined upper limit.

The limiting processing unit can be caused to perform limitingprocessing using zero as the lower limit, limiting processing using oneas the lower limit or limiting processing using one as the upper limit.

The decoding apparatus can further include: an operation unit configuredto obtain at the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions, and obtaindifferences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions. When the interpolation information isinformation indicating that the gain value is obtained through linearinterpolation, the interpolation processing unit can be caused to obtainthe gain value through linear interpolation, and, when the interpolationinformation is information indicating that the gain value is obtainedthrough non-linear interpolation, the interpolation processing unit canbe caused to obtain the gain value through non-linear interpolation orlinear interpolation according to the differences.

A decoding method or a program according to the first aspect of thepresent technology includes the steps of: reading out encoded gainvalues at at least two gain sample positions of a time series signal;reading out interpolation information indicating whether the gain valueat each sample position of the time series signal is obtained throughlinear interpolation or obtained through non-linear interpolation; andobtaining the gain value at each sample position located between the twogain sample positions of the time series signal based on the gain valuesat the gain sample positions through linear interpolation or non-linearinterpolation according to the interpolation information.

According to the first aspect of the present technology, encoded gainvalues at at least two gain sample positions of a time series signal areread out. Interpolation information indicating whether the gain value ateach sample position of the time series signal is obtained throughlinear interpolation or obtained through non-linear interpolation isread out. The gain value at each sample position located between the twogain sample positions of the time series signal based on the gain valuesat the gain sample positions is obtained through linear interpolation ornon-linear interpolation according to the interpolation information.

A decoding apparatus according to a second aspect of the presenttechnology includes: a gain readout unit configured to read out encodedgain values at at least two gain sample positions of a time seriessignal and gain inclination values indicating inclination of the gainvalues; an operation unit configured to obtain at the gain samplepositions, straight lines having the gain values at the gain samplepositions and having inclination indicated by the gain inclinationvalues at the gain sample positions, and obtain differences between again value at an intersection of the straight lines obtained for the twogain sample positions and the gain values at the two gain samplepositions; and an interpolation processing unit configured to obtain thegain value at each sample position located between the two gain samplepositions of the time series signal through linear interpolation ornon-linear interpolation according to the differences.

A decoding method or a program according to the second aspect of thepresent technology includes the steps of: reading out encoded gainvalues at at least two gain sample positions of a time series signal andgain inclination values indicating inclination of the gain values;obtaining at the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions, and obtainingdifferences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions; and obtaining the gain value at eachsample position located between the two gain sample positions of thetime series signal through linear interpolation or non-linearinterpolation according to the differences.

According to the second aspect of the present technology, encoded gainvalues at at least two gain sample positions of a time series signal andgain inclination values indicating inclination of the gain values areread out. At the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions are obtainedand differences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions are obtained. The gain value at eachsample position located between the two gain sample positions of thetime series signal is obtained through linear interpolation ornon-linear interpolation according to the differences.

Advantageous Effects of Invention

According to the first aspect and the second aspect of the presenttechnology, it is possible to obtain sound with higher quality.

Note that advantageous effects are not limited to the advantageouseffect described herein and may be any advantageous effects described inthe present disclosure.

BRIEF DESCRIPTION OF DRAWINGS

[FIG. 1] FIG. 1 is a diagram for explaining linear interpolation of again according to an embodiment of the present technology.

[FIG. 2] FIG. 2 is a diagram illustrating an example of a gain waveformaccording to an embodiment of the present technology.

[FIG. 3] FIG. 3 is a diagram for explaining non-linear interpolation ofa gain according to an embodiment of the present technology.

[FIG. 4] FIG. 4 is a diagram illustrating a configuration example of anencoding apparatus according to an embodiment of the present technology.

[FIG. 5] FIG. 5 is a flowchart explaining encoding processing accordingto an embodiment of the present technology.

[FIG. 6] FIG. 6 is a diagram illustrating DRC characteristics accordingto an embodiment of the present technology.

[FIG. 7] FIG. 7 is a diagram illustrating a configuration example of adecoding apparatus according to an embodiment of the present technology.

[FIG. 8] FIG. 8 is a flowchart explaining decoding processing accordingto an embodiment of the present technology.

[FIG. 9] FIG. 9 is a flowchart explaining gain decoding processingaccording to an embodiment of the present technology.

[FIG. 10] FIG. 10 is a diagram illustrating a configuration example of adecoding apparatus according to an embodiment of the present technology.

[FIG. 11] FIG. 11 is a flowchart explaining gain decoding processingaccording to an embodiment of the present technology.

[FIG. 12] FIG. 12 is a diagram for explaining interpolation of a gainwaveform according to an embodiment of the present technology.

[FIG. 13] FIG. 13 is a diagram for explaining interpolation of a gainwaveform according to an embodiment of the present technology.

[FIG. 14] FIG. 14 is a diagram for explaining interpolation of a gainwaveform according to an embodiment of the present technology.

[FIG. 15] FIG. 15 is a diagram illustrating a configuration example of adecoding apparatus according to an embodiment of the present technology.

[FIG. 16] FIG. 16 is a flowchart explaining gain decoding processingaccording to an embodiment of the present technology.

[FIG. 17] FIG. 17 is a diagram explaining interpolation of a gainwaveform according to an embodiment of the present technology.

[FIG. 18] FIG. 18 is a flowchart explaining gain decoding processingaccording to an embodiment of the present technology.

[FIG. 19] FIG. 19 is a diagram illustrating a configuration example of acomputer according to an embodiment of the present technology.

DESCRIPTION OF EMBODIMENTS

Hereinafter, an embodiment to which the present technology is appliedwill be described with reference to drawings.

First Embodiment

<Outline of the Present Technology>

The present technology relates to a technique of encoding a gain valuewhen volume of an audio signal is corrected at a reproduction side,multiplexing a gain code string obtained by encoding the gain value anda signal code string obtained by encoding the audio signal andtransmitting the multiplexed code string, and a technique of decodingthese gain code string and signal code string and correcting volume ofthe audio signal.

In the present technology, by designating an arbitrary value for eachsample within a frame of the audio signal as a gain value for volumecorrection, it is possible to obtain sound with a smoother temporalwaveform. By this means, it is possible to obtain sound with higherquality which does not cause a feeling of strangeness. Here, while thegain value for volume correction may be a dB value or a linear value,description will be continued below assuming that the gain value is alinear value.

Further, when the gain value is encoded, if a gain code string isobtained by encoding only gain values at part of sample positions suchas, for example, characteristic positions such as inflection points of again waveform and gain values which are arranged at predeterminedintervals among gain values at respective sample positions within aframe, it is also possible to reduce a code amount of the gain codestring.

In this case, a decoding side of the gain code string needs to obtain anoriginal gain waveform based on gain values at some sample positionsobtained through decoding of the gain code string.

Here, as a method for obtaining the original gain waveform, for example,there is a possible method for obtaining gain values at sample positionswhich are not included in the gain code string by performing linearinterpolation as illustrated in FIG. 1.

It should be noted that FIG. 1 indicates a gain value on a vertical axisand a sample position within a frame of an audio signal on a horizontalaxis.

Further, hereinafter, a sample position of an encoded gain value whichis included in a gain code string will be also specially referred to asa gain sample position. Still further, in the following, a point on again waveform expressed with an encoded sample position and a gain valueincluded in the gain code string will be also simply referred to as again sample position.

In the example of FIG. 1, information of a gain sample position Gil anda gain sample position G12 is obtained through decoding of the gain codestring.

Here, a gain value at the k-th gain sample position within a frame isset as g[k], and a sample length (the number of samples) in a sampleaxis direction from the k-th gain sample position to the k+1-th gainsample position will be expressed as T[k].

In this case, when it is assumed that a sample position of the k-th gainsample position G11 is n=0, the gain sample position G11 is a pointexpressed with a coordinate (0, g[k]), and the gain sample position G12is a point expressed with a coordinate (T[k], g[k+1]). Here, n is anindex indicating the n-th sample position from the head of the frame.

Further, a gain waveform between the gain sample position G11 and thegain sample position G12 obtained through linear interpolation becomes awaveform indicated with a straight line L11. That is, between the gainsample position G11 and the gain sample position G12, a gain value ateach sample position is obtained through interpolation assuming that thegain value linearly changes.

However, if the gain waveform is estimated through linear interpolation,for example, as indicated with a curve C11 in FIG. 2, when a smooth gainwaveform is tried to be encoded, the number of points to be encoded inthe gain waveform, that is, the number of gain sample positionsincreases. It should be noted that FIG. 2 indicates a gain value on avertical axis and a sample position within a frame of an audio signal ona horizontal axis.

In this example, because the gain waveform indicated with the curve C11is a smooth waveform, if the decoding side tries to reproduce the gainwaveform with a certain level of precision, it is necessary to encodegain values at a number of gain sample positions. This will increase acode amount of a bit stream obtained by multiplexing the gain codestring and the signal code string, that is, increase a bit rate.

Therefore, in the present technology, in order to make it possible toobtain sound with higher quality with a less code amount, non-linearinterpolation is newly performed as appropriate in addition to linearinterpolation. That is, a gain waveform is generated by performinginterpolation processing using a more appropriate method selectedbetween linear interpolation and non-linear interpolation. It should benoted that non-linear interpolation can be, for example, interpolationusing a quadratic function or a cubic function.

For example, when non-linear interpolation utilizing a cubic function isperformed, a waveform indicated with a curve C21 in FIG. 3 can beobtained as a gain waveform between the gain sample position G11 and thegain sample position G12 illustrated in FIG. 1. It should be noted thatFIG. 3 indicates a gain value on a vertical axis and a sample positionwithin a frame of an audio signal on a horizontal axis. Further, in FIG.3, the same reference numerals as those in FIG. 1 are assigned toportions corresponding to those in FIG. 1, and explanation thereof willbe omitted as appropriate.

In this example, the gain code string includes information indicatingthe sample position, the gain value and a gain inclination value at thegain sample position G11, and information indicating the sampleposition, the gain value and a gain inclination value at the gain sampleposition G12.

Here, the gain inclination value is information indicating inclinationof the original gain waveform at a gain sample position. Hereinafter, again inclination value at the k-th gain sample position will beexpressed as s[k].

In FIG. 3, an arrow D11 indicates the gain inclination value s[k] at thegain sample position G11, and an arrow D12 indicates a gain inclinationvalue s[k+1] at the gain sample position G12.

At the decoding side, the gain waveform between the gain sample positionGil and the gain sample position G12 is obtained through non-linearinterpolation utilizing a cubic function, and, as a result, the gainwaveform indicated with the curve C21 is obtained.

The gain waveform indicated with the curve C21 is, for example, a curveof a cubic function which passes through the gain sample position Giland the gain sample position G12 and whose inclination at the gainsample position Gil and the gain sample position G12 is respectivelys[k] and s[k+1].

In this manner, by utilizing non-linear interpolation as appropriate,even when the gain waveform is a smooth waveform, it is possible toreproduce the gain waveform with high precision through encoding of lessgain sample positions, that is, with a less code amount.

In the present technology, for example, as a parameter for switchingbetween linear interpolation and non-linear interpolation, interpolationmode information indicating an interpolation scheme using linearinterpolation or an interpolation scheme using non-linear interpolationis included in the gain code string. The decoding side switches betweenlinear interpolation and non-linear interpolation according to thisinterpolation mode information.

Here, the interpolation mode information may be, for example, an indexof two bits for switching among linear interpolation, interpolationusing a quadratic function and interpolation using a cubic function, ormay be a flag of one bit for switching between linear interpolation andinterpolation using a cubic function which is non-linear interpolation.That is, any information may be used as the interpolation modeinformation if the information indicates a method for interpolating again waveform.

Further, in the present technology, when the interpolation modeinformation is information indicating an interpolation scheme usingnon-linear interpolation, in addition to a gain value, a gaininclination value is included in the gain code string for each gainsample position.

Here, the gain inclination value s[k] indicates change of a gain valueper one sample. For example, the gain inclination value s[k] at the k-thgain sample position is inclination of a straight line which connects apoint on the gain waveform at the k-th gain sample position and a pointon the gain waveform at the next sample position of the k-th gain sampleposition. It should be noted that the gain inclination value may beobtained using any method if the gain inclination value indicatesinclination at the gain sample position on the gain waveform.

It should be noted that the gain inclination value as is may be storedin the gain code string, or a quantization value of the gain inclinationvalue or an entropy encoded value such as a Huffman encoded value of thegain inclination value may be stored in the gain code string.

<Linear Interpolation>

Further, specific examples of a method for performing linearinterpolation and a method for performing non-linear interpolation on again value at each sample position between two gain sample positionswill be described. First, a method for performing linear interpolationwill be described.

When linear interpolation is performed using the interpolation modeinformation, at the decoding side, a gain value is read out for eachgain sample position from the gain code string.

Here, an index at the k-th gain sample position is set as k, and a gainvalue at the k-th gain sample position read out from the gain codestring is set as g[k]. Further, a sample length between the k-th gainsample position and the k+1-th gain sample position is set as T[k], andit is assumed that the sample length T[k] is included in the gain codestring as information indicating the sample position of the k+1-th gainsample position.

It is now assumed that the k-th gain sample position is a head positionof a frame, that is, the sample position of n=0. In such a case, a gainvalue g_interpolated[n] of the sample n which is located between thek-th gain sample position and the k+1-th gain sample position and whichis the n-th (where 0≤n<t[k]) sample from the head is calculated usingthe following equation (1).

[Math. 1]

g_interpolated[n]=a[k]×n+b[k](0≤n<T[k])   (1)

It should be noted that in equation (1), a[k] and b[k] are valuesrespectively obtained using the following equation (2) and equation (3).

[Math. 2]

a[k]=(g[k+1]−g[k])/T[k]  (2)

[Math. 3]

b[k]=g[k]  (3)

That is, a[k] and b[k] indicate inclination and intercept of a straightline connecting the k-th gain sample position and the k+1-th gain sampleposition. Therefore, in this example, as described with reference toFIG. 1, it is determined that the gain value linearly changes betweenthe k-th gain sample position and the k+1-th gain sample position, and again value of each sample n is obtained through linear interpolation.

<Non-Linear Interpolation>

Subsequently, a case will be described where a gain value of the samplen between the k-th gain sample position and the k+1-th gain sampleposition is obtained through non-linear interpolation. Here, descriptionwill be continued with a case where interpolation using a cubic functionis performed as an example of non-linear interpolation.

When non-linear interpolation is performed according to theinterpolation mode information, at the decoding side, a gain value and again inclination value are read out from the gain code string for eachgain sample position.

Here, in a similar manner to a case of linear interpolation, a gainvalue at the k-th gain sample position is set as g[k], and a samplelength between the k-th gain sample position and the k+1-th gain sampleposition is set as T[k]. Further, a gain inclination value at the k-thgain sample position is set as s[k].

It is now assumed that the k-th gain sample position is a head positionof the frame, that is, a sample position of n=0. In such a case, a gainvalue g_interpolated[n] of the sample n which is located between thek-th gain sample position and the k+1-th gain sample position and whichis the n-th (where 0≤n<T[k]) sample from the head is calculated usingthe following equation (4).

[Math. 4]

g_interpolated[n]=c[k]×n ³ +d[k]×n ² +e[k]×n+f[k](0≤n<T[k])   (4)

It should be noted that, in equation (4), c[k], d[k], e[k] and f[k] arevalues respectively obtained using the following equation (5) toequation (8).

[Math. 5]

c[k]=(1/T[k])×{(s[k+1]+s[k])/T [k]−2×(g[k+1]−g[k])/(T[k] ²)}  (5)

[Math. 6]

d[k]=3×(g[k+1]−g[k])−(s[k+1]+2×s[k])/T[k]  (6)

[Math. 7]

e[k]=s[k]  (7)

[Math. 8]

f[k]=g[k]  (8)

In this example, as described with reference to FIG. 3, a gain value ofeach sample n is obtained through non-linear interpolation, that is,interpolation using a cubic function assuming that the gain valuechanges according to a cubic function indicated in equation (4) betweenthe k-th gain sample position and the k+1-th gain sample position.

As described above, by obtaining a gain value as appropriate throughnon-linear interpolation, a smooth gain waveform as illustrated in, forexample, FIG. 2 can be encoded at a lower bit rate, so that it ispossible to improve coding efficiency.

<Configuration Example of Encoding Apparatus>

Subsequently, a specific embodiment to which the present technologydescribed above is applied will be described.

FIG. 4 is a diagram illustrating a configuration example of anembodiment of an encoding apparatus to which the present technology isapplied.

The encoding apparatus 11 has a sound pressure level calculating circuit21, a gain calculating circuit 22, a gain encoding circuit 23, a signalencoding circuit 24 and a multiplexing circuit 25.

The sound pressure level calculating circuit 21 calculates soundpressure levels of channels constituting an input time series signalbased on the input time series signal which is a supplied multichannelaudio signal and obtains a representative value of sound pressure levelsfor each of the channels as a representative sound pressure level.

It should be noted that the representative value of the sound pressurelevels is obtained for each frame of the input time series signal.Further, a frame which is used as a processing unit at the soundpressure level calculating circuit 21 is synchronized with a frame ofthe input time series signal which is to be processed at the signalencoding circuit 24 which will be described later and is made a framehaving a length shorter than that of a frame at the signal encodingcircuit 24.

The sound pressure level calculating circuit 21 supplies the obtainedrepresentative sound pressure level to the gain calculating circuit 22.The representative sound pressure level obtained in this mannerindicates a representative sound pressure level of the channels of theinput time series signal which is constituted with an audio signal ofthe predetermined number of channels such as, for example, 11.1 ch.

The gain calculating circuit 22 calculates a gain value based on therepresentative sound pressure level supplied from the sound pressurelevel calculating circuit 21 and supplies the gain value to the gainencoding circuit 23.

Here, the gain value indicates a gain value for correcting volume of theinput time series signal so as to be able to obtain sound of appropriatevolume when the input time series signal is reproduced at the decodingside, and a gain value is calculated for each sample position within aframe at the gain calculating circuit 22.

The gain encoding circuit 23 encodes the gain value supplied from thegain calculating circuit 22 and supplies a gain code string obtained asa result of encoding to the multiplexing circuit 25.

Here, the gain code string includes gain information for obtaining again value of each gain sample position and interpolation modeinformation.

The signal encoding circuit 24 encodes the supplied input time seriessignal using a predetermined encoding scheme, for example, a typicalencoding method typified by an encoding method using MEPG AAC andsupplies a signal code string obtained as a result of encoding to themultiplexing circuit 25.

The multiplexing circuit 25 multiples the gain code string supplied fromthe gain encoding circuit 23 and the signal code string supplied fromthe signal encoding circuit 24 and outputs an output code stringobtained as a result of multiplexing.

<Description of Encoding Processing>

Specific operation of the encoding apparatus 11 will be described next.

When the input time series signal corresponding to one frame issupplied, the encoding apparatus 11 performs encoding processing ofencoding the input time series signal and outputting the output codestring. Hereinafter, encoding processing by the encoding apparatus 11will be described with reference to the flowchart of FIG. 5.

In step S11, the sound pressure level calculating circuit 21 calculatesa representative sound pressure level of the input time series signalbased on the supplied input time series signal and supplies therepresentative sound pressure level to the gain calculating circuit 22.

Specifically, the sound pressure level calculating circuit 21 calculatessound pressure levels of respective channels constituting the input timeseries signal and sets a representative value of the sound pressurelevels of these channels as a representative sound pressure level.

For example, in a method for calculating a sound pressure level, amaximum value, a root mean square (RMS), or the like, of frames of anaudio signal of channels constituting the input time series signal isused, and a sound pressure level is obtained for each of the channelsconstituting the input time series signal for the frames of the inputtime series signal.

Further, as a method for calculating a representative value as therepresentative sound pressure level, for example, a method in which amaximum value among sound pressure levels of the channels in the sameframe is set as the representative value, a method in which onerepresentative value is calculated using a specific calculation formulafrom the sound pressure levels of the channels, or the like, can beused. Specifically, for example, it is possible to calculate therepresentative value using a loudness calculation formula described inITU-R BS.1770-2(03/2011).

In step S12, the gain calculating circuit 22 calculates a gain valuebased on the representative sound pressure level supplied from the soundpressure level calculating circuit 21 and supplies the gain value to thegain encoding circuit 23.

For example, the gain calculating circuit 22 calculates the gain valueaccording to DRC characteristics designated by a higher-order controlapparatus.

The DRC characteristics designated by the higher-order control apparatuscan be DRC characteristics as illustrated in, for example, FIG. 6. Itshould be noted that FIG. 6 indicates an input sound pressure level(dBFS), that is, a representative sound pressure level on a horizontalaxis, and indicates an output sound pressure level (dBFS), that is, acorrected sound pressure level when the sound pressure level (volume) ofthe input time series signal is corrected, on a vertical axis.

A broken line L31 and a broken line L32 respectively indicaterelationship of the input and output sound pressure levels. For example,according to the DRC characteristic indicated with the broken line L31,when there is an input of the representative sound pressure level of 0dBFS, volume is corrected so that the sound pressure level of the inputtime series signal becomes−27 dBFS.

On the other hand, for example, according to the DRC characteristicsindicated with the broken line L32, when there is an input of therepresentative sound pressure level of 0 dBFS, volume is corrected sothat the sound pressure level of the input time series signal becomes−21dBFS.

The gain calculating circuit 22 determines a gain value according to theDRC characteristics indicated with such a broken line L31 and a brokenline L32. This gain value is outputted as a gain waveform synchronizedwith the frame at the signal encoding circuit 24. That is, the gaincalculating circuit 22 calculates a gain value for each of samplesconstituting a frame which is to be processed of the input time seriessignal.

More specifically, for example, the gain calculating circuit 22 obtainsa gain waveform g(J, n) in a frame J by performing calculation of thefollowing equation (9).

[Math. 9]

g(J, n)=A×Gt(J)+(1−A)×g(J, n−1)   (9)

It should be noted that, in equation (9), n indicates a position of asample which takes values from 0 to N−1 when a frame length is set as N,Gt(J) indicates the above-described DRC characteristics, that is, atarget gain in the frame J determined by the input sound pressure leveland the output sound pressure level.

Further, A in equation (9) is a value determined by the followingequation (10).

[Math. 10]

A=1−exp(−1/(2×Fs×Tc(J)))   (10)

In equation (10), Fs indicates a sampling frequency (Hz), Tc(J)indicates a time constant in the frame J, and exp(x) indicates anexponent function. Further, in equation (9), a gain value of the lastsample in a frame immediately before the frame is used as a gainwaveform g(J, n−1) when n=0.

Returning to explanation of the flowchart in FIG. 5, in step S13, thegain encoding circuit 23 performs gain encoding processing to encode thegain value supplied from the gain calculating circuit 22. The gainencoding circuit 23 then supplies the gain code string obtained throughthe gain encoding processing to the multiplexing circuit 25.

For example, the gain encoding circuit 23 extracts a gain sampleposition to be encoded from the gain value at each sample positionsupplied from the gain calculating circuit 22, that is, a gain waveformof the frame to be processed. For example, characteristic samples suchas inflection points in the gain waveform may be used as the gain samplepositions, or samples arranged at predetermined intervals may be used asthe gain sample positions.

The gain encoding circuit 23 generates interpolation mode informationand gain information for each of the gain sample positions extracted inthis manner.

For example, the gain encoding circuit 23 generates the interpolationmode information by performing so-called local decoding.

That is, the gain encoding circuit 23 generates a gain waveform betweentwo gain sample positions adjacent to each other through interpolationfor linear interpolation and non-linear interpolation, and calculates adifference between the gain waveform and an actual gain waveform. Thegain encoding circuit 23 then generates information indicating aninterpolation scheme in which the obtained difference is smaller as theinterpolation mode information.

It should be noted that whether linear interpolation is performed ornon-linear interpolation is performed may be determined using any othermethod. For example, it is also possible to determine that linearinterpolation is performed when the gain value is the same between thegain sample position to be processed and the gain sample positionimmediately before the gain sample position to be processed, and thegain inclination value of the gain sample position immediately beforethe gain sample position to be processed is 0, and, that non-linearinterpolation is performed in other cases. Alternatively, it is alsopossible to employ a configuration where a higher-order controlapparatus designates linear interpolation or non-linear interpolation.

Further, the gain encoding circuit 23 encodes a sample length T[k], again value g[k] and a gain inclination value s[k] indicating the sampleposition as appropriate for each gain sample position to obtain gaininformation. It should be noted that, when the interpolation modeinformation is information indicating an interpolation scheme usinglinear interpolation, gain information only including the sample lengthand the gain value and not including the gain inclination value isgenerated.

The gain encoding circuit 23 supplies the gain code string including thegain information of each gain sample position and the interpolation modeinformation obtained in this manner to the multiplexing circuit 25.

In step S14, the signal encoding circuit 24 encodes the supplied inputtime series signal according to a predetermined encoding scheme andsupplies the signal code string obtained as a result of encoding to themultiplexing circuit 25.

In step S15, the multiplexing circuit 25 multiplexes the gain codestring supplied from the gain encoding circuit 23 and the signal codestring supplied from the signal encoding circuit 24 and outputs theoutput code string obtained as a result of multiplexing. When the outputcode string corresponding to one frame is outputted as a bit stream inthis manner, encoding processing ends. Then, encoding processing of thenext frame is performed.

As described above, the encoding apparatus 11 obtains the gain value foreach sample within a frame of the input time series signal to extractthe gain sample position and generates the gain code string constitutedwith gain information of each gain sample position and interpolationmode information.

By the gain value for each sample within a frame being determined inthis manner, at the decoding side, temporal waveforms between frames ofthe audio signal are smoothly connected, so that it is possible toobtain sound with higher quality. Moreover, by the interpolation modeinformation being included in the gain code string, it is possible toreproduce a gain waveform with high precision with a less code amount byutilizing non-linear interpolation as appropriate.

<Configuration Example of Decoding Apparatus>

A decoding apparatus which receives the output code string outputtedfrom the encoding apparatus 11 as an input code string and decodes theinput code string will be described next.

FIG. 7 is a diagram illustrating a configuration example of anembodiment of the decoding apparatus to which the present technology isapplied.

The decoding apparatus 51 illustrated in FIG. 7 has a demultiplexingcircuit 61, a signal decoding circuit 62, a gain decoding circuit 63 anda gain applying circuit 64.

The demultiplexing circuit 61 demultiplexes the supplied input codestring, that is, the output code string received from the encodingapparatus 11 and supplies the signal code string obtained as a result ofdemultiplexing to the signal decoding circuit 62, while supplying thegain code string to the gain decoding circuit 63.

The signal decoding circuit 62 decodes the signal code string suppliedfrom the demultiplexing circuit 61 and supplies a time series signalobtained as a result of decoding to the gain applying circuit 64. Here,the time series signal is, for example, an audio signal of 11.1 ch or7.1 ch, and an audio signal of channels constituting the time seriessignal is set as a pulse code modulation (PCM) signal.

The gain decoding circuit 63 decodes the gain code string supplied fromthe demultiplexing circuit 61 and supplies a gain value obtained as aresult of decoding to the gain applying circuit 64. The gain decodingcircuit 63 has an interpolation processing unit 71, which calculates again value at each sample position of the time series signal throughlinear interpolation or non-linear interpolation based on the gaininformation and the interpolation mode information obtained from thegain code string.

The gain applying circuit 64 corrects volume of the time series signalby adjusting a gain of the time series signal supplied from the signaldecoding circuit 62 based on the gain value supplied from the gaindecoding circuit 63 and outputs an output time series signal obtained asa result of volume correction.

<Explanation of Decoding Processing>

Subsequently, operation of the decoding apparatus 51 will be described.

When the input code string corresponding to one frame is supplied, thedecoding apparatus 51 performs decoding processing of decoding the inputcode string and outputting an output time series signal. The decodingprocessing by the decoding apparatus 51 will be described below withreference to the flowchart of FIG. 8.

In step S41, the demultiplexing circuit 61 receives the input codestring transmitted from the encoding apparatus 11 and demultiplexes theinput code string, and supplies a signal code string obtained as aresult of demultiplexing to the signal decoding circuit 62, whilesupplying the gain code string to the gain decoding circuit 63.

In step S42, the signal decoding circuit 62 decodes the signal codestring supplied from the demultiplexing circuit 61 and supplies a timeseries signal obtained as a result of decoding to the gain applyingcircuit 64.

In step S43, the gain decoding circuit 63 performs gain decodingprocessing to decode the gain code string supplied from thedemultiplexing circuit 61 and supplies a gain value at each sampleposition of a frame to be processed obtained as a result of decoding tothe gain applying circuit 64. It should be noted that details of thegain decoding processing will be described later.

In step S44, the gain applying circuit 64 adjusts a gain of the timeseries signal supplied from the signal decoding circuit 62 based on thegain value supplied from the gain decoding circuit 63 and outputs theobtained output time series signal. That is, each sample of the timeseries signal is multiplied by the gain value to be made an output timeseries signal with appropriate volume.

When the output time series signal is outputted, the decoding processingends.

As described above, the decoding apparatus 51 decodes the gain codestring, and applies the obtained gain value at each sample position tothe time series signal to adjust a gain (volume) in a time domain. Byadjusting a gain with a gain value determined for each sample positionin this manner, it is possible to smoothly connect time waveformsbetween frames of the output time series signal, so that it is possibleto obtain sound with higher quality.

Moreover, because a gain waveform is obtained by utilizing non-linearinterpolation as appropriate, even when the gain waveform is a smoothwaveform, it is possible to reproduce the gain waveform with highprecision with a less code amount.

<Explanation of Gain Decoding Processing>

Further, gain decoding processing corresponding to processing in stepS43 of FIG. 8 will be described with reference to the flowchart of FIG.9.

In step S71, the gain decoding circuit 63 reads out gain information ata gain sample position to be processed from the gain code stringsupplied from the demultiplexing circuit 61 and decodes a sample lengthT[k], a gain value g[k] and a gain inclination value s[k] included asthe gain information as necessary. It should be noted that when aninterpolation scheme indicated by the interpolation mode information isan interpolation scheme using linear interpolation, the gain inclinationvalue is not included in the gain information.

For example, in the gain code string, gain information and interpolationmode information at each gain sample position are stored while beingarranged in ascending order of a distance from the head of the frame.Because the gain decoding circuit 63 sequentially reads out the gaininformation and the interpolation mode information from the gain codestring, a gain sample position is set as a gain sample position to beprocessed in ascending order of a distance from the head of the frame.

In step S72, the gain decoding circuit 63 reads out the interpolationmode information at the gain sample position to be processed from thegain code string.

It should be noted that while an example where the interpolation modeinformation is included in the gain code string will be described here,the interpolation mode information may be included in a header, or thelike, of a bit stream in which an input code string of each frame isincluded, or the interpolation mode information may be acquired from ahigher-order control apparatus, or the like.

In step S73, the interpolation processing unit 71 determines whether ornot the interpolation scheme indicated by the read-out interpolationmode information is a scheme using linear interpolation.

In step S73, when it is determined that the interpolation scheme is ascheme using linear interpolation, in step S74, the interpolationprocessing unit 71 performs linear interpolation to generate a gainwaveform.

Specifically, the interpolation processing unit 71 performs the samecalculation as that of the above-described equation (1) based on thegain value g[k] and the sample length T[k−1] at the gain sample positionto be processed, and a gain value and a sample position at a gain sampleposition one position closer to the head of the frame from the gainsample position to be processed to generate a gain waveform between thegain sample positions. That is, a gain value at each sample positionlocated between two gain sample positions of the time series signal iscalculated, and a waveform constituted with gain values at the samplepositions is set as a gain waveform.

When the gain waveform between two adjacent gain sample positons isobtained in this manner, the processing proceeds to step S76.

On the other hand, when it is determined in step S73 that the scheme isa scheme which does not use linear interpolation, that is, a schemeusing non-linear interpolation, in step S75, the interpolationprocessing unit 71 performs non-linear interpolation to generate a gainwaveform.

Specifically, the interpolation processing unit 71 performs the samecalculation as that of the above-described equation (4) based on thegain value g[k], the sample length T[k−1] and the gain inclination values[k] at the gain sample position to be processed and a gain value, asample position and a gain inclination value at a gain sample positionone position closer to the head of the frame from the gain sampleposition to be processed to generate a gain waveform between the gainsample positions. That is, a gain value at each sample position locatedbetween two gain sample positions of the time series signal iscalculated, and a waveform constituted with gain values of the samplepositions is set as a gain waveform.

When the gain waveform between two adjacent gain sample positions isobtained in this manner, the processing proceeds to step S76.

When the gain waveform between the gain sample positons is obtainedthrough interpolation in step S74 or step S75, in step S76, the gaindecoding circuit 63 determines whether or not processing is performedfor all the gain sample positions.

When it is determined in step S76 that not all of the gain samplepositions are processed yet, the processing returns to step S71, and theabove-described processing is repeated. That is, the next gain sampleposition is selected as a processing target, and a gain waveform isobtained through interpolation.

On the other hand, when it is determined in step S76 that all of thegain sample positions are processed, the gain decoding circuit 63supplies a gain waveform corresponding to one frame constituted withgain values at the sample positions obtained through the processing sofar to the gain applying circuit 64, and the gain decoding processingends. When the gain decoding processing ends, then, the processingproceeds to step S44 in FIG. 8.

The decoding apparatus 51 obtains a gain waveform through linearinterpolation or non-linear interpolation according to the interpolationmode information as described above. By obtaining a gain waveformthrough non-linear interpolation as appropriate according to theinterpolation mode information in this manner, it is possible toreproduce a gain waveform with high precision with a less code amount.

It should be noted that while an example has been described above wherethe interpolation mode information is generated for each gain sampleposition, and the interpolation scheme is switched between linearinterpolation and non-linear interpolation, one piece of theinterpolation mode information may be generated for each frame. In thiscase, the interpolation scheme is switched between linear interpolationand non-linear interpolation in units of a frame.

Further, the interpolation scheme may be switched between linearinterpolation and non-linear interpolation in units of a plurality offrames or in units of a file. For example, when the interpolation schemeis switched in units of a file, for example, one piece of interpolationmode information is stored in a header of the bit stream. Theinterpolation processing unit 71 performs interpolation processing ofeach frame using an interpolation scheme indicated by the interpolationmode information, that is, either the scheme using linear interpolationor the scheme using non-linear interpolation to obtain a gain waveformcorresponding to one file.

Second Embodiment

<Limiting>

By the way, the gain waveform obtained through non-linear interpolationis different from the gain waveform obtained through linearinterpolation, and there is a case where a gain value at a sampleposition between two gain sample positions may be greater or smallerthan gain values at two gain sample positions included in the gain codestring.

For example, in the example illustrated in FIG. 3, in part of the gainwaveform indicated with the curve C21, which is obtained throughnon-linear interpolation, there is a portion where the gain valuebecomes smaller than the gain value g[k] at the gain sample positionG11. Further, in part of the gain waveform indicated with the curve C21,there is also a portion where the gain value becomes greater than thegain value g[k+1] at the gain sample position G12.

Therefore, there is a case where the gain value obtained throughnon-linear interpolation becomes a negative (minus) value which isinappropriate as the gain value. Therefore, in order to prevent the gainvalue obtained through interpolation from becoming an inappropriatevalue, it is also possible to perform limiting on the gain value usingzero as a lower limit by performing calculation of the followingequation (11).

[Math. 11]

g_interpolated[n]=max(0, g _(—) interpolated[n])   (11)

In equation (11), between the gain value g_interpolated[n] obtainedthrough interpolation and zero, a greater one is made a final gain valueg_interoplated[n]. Accordingly, the final gain value is equal to orgreater than zero, and the gain value does not become a negative value.

Further, there is a case where it is desired to boost (amplify) the timeseries signal and a case where it is desired to compress (suppress) thetime series signal through gain adjustment (volume correction).

For example, when it is desired to boost the time series signal, if thegain value is smaller than one, the gain value becomes an inappropriatevalue. Therefore, when the time series signal is boosted, it is alsopossible to perform limiting on the gain value using one as a lowerlimit by performing calculation of the following equation (12).

[Math. 12]

g_interpolated[n]=max(1, g _(—) interpolated[n])  (12)

In equation (12), between the gain value g_interpolated[n] obtainedthrough interpolation and one, a greater one is made a final gain valueg_interpolated[n]. Accordingly, the gain value does not become a valueless than one. In other words, the gain value is always equal to orgreater than one which is the lower limit.

Further, for example, when it is desired to compress the time seriessignal, if the gain value is greater than one, the gain value becomes aninappropriate value. Therefore, when the time series signal iscompressed, it is also possible to perform limiting on the gain valueusing one as an upper limit by performing calculation of the followingequation (13).

[Math. 13]

g_interpolated[n]=min(1, g _(—) interpolated[n])   (13)

In equation (13), between the gain value g_interpolated[n] obtainedthrough interpolation and one, a smaller one is made a final gain valueg_interpolated[n]. Accordingly, the gain value does not become a valuegreater than one. In other words, the gain value is always equal to orsmaller than one which is the upper limit.

When limiting processing as indicated in equation (12) or equation (13)is performed, it is only necessary to provide limiting informationindicating whether the gain waveform is used for boosting or used forcompression to the gain decoding circuit 63 as information regarding theencoded gain waveform. For example, the limiting information may besupplied from a higher-order control apparatus to the gain decodingcircuit 63, or the limiting information may be included in the gain codestring, the header of the bit stream, or the like.

In the following, description will be continued assuming that thelimiting information is included in the gain code string. In this case,in the processing of step S13 in FIG. 15, the gain code string includingthe limiting information is generated.

By performing the limiting processing on the gain value as describedabove, it is possible to obtain a more appropriate gain value. By thismeans, it is possible to perform more appropriate gain adjustment(volume control), and, as a result, it is possible to obtain sound withhigher quality.

<Configuration Example of Decoding Apparatus>

When limiting processing is performed on the gain value, the decodingapparatus 51 is configured as illustrated in, for example, FIG. 10. Itshould be noted that, in FIG. 10, the same reference numerals as thosein FIG. 7 are assigned to portions corresponding to those in FIG. 7, andexplanation thereof will be omitted as appropriate.

The decoding apparatus 51 illustrated in FIG. 10 has a differentconfiguration from that of the decoding apparatus 51 in FIG. 7 in that alimiting processing unit 101 is newly provided at the gain decodingcircuit 63, and has the same configuration as that of the decodingapparatus 51 in FIG. 7 in other points.

The limiting processing unit 101 performs limiting processing on thegain value calculated through non-linear interpolation performed by theinterpolation processing unit 71 to obtain a final gain value.

<Explanation of Gain Decoding Processing>

Gain decoding processing performed in the case where the decodingapparatus 51 has the configuration illustrated in FIG. 10 will bedescribed next.

For example, at the decoding apparatus 51, the decoding processingdescribed with reference to FIG. 8 is performed. However, in gaindecoding processing corresponding to step S43, the gain decodingprocessing illustrated in FIG. 11 is performed. The gain decodingprocessing by the decoding apparatus 51 in FIG. 10 will be describedbelow with reference to the flowchart of FIG. 11.

It should be noted that the processing from step S101 to step S105 isthe same as processing from step S71 to step S75 in FIG. 9, explanationthereof will be omitted.

In step S106, the limiting processing unit 101 changes the gain value asappropriate so that the gain value does not become a negative value byperforming calculation of the above-described equation (11) on the gainvalue at each sample position obtained through processing in step S105.

Further, the limiting processing unit 101 obtains a final gain value byfurther performing calculation of either equation (12) or equation (13)on the gain value limited through calculation of equation (11) accordingto the limiting information included in the gain code string.

Specifically, when the limiting information included in the gain codestring indicates that the gain waveform is to be used for boosting, thelimiting processing unit 101 performs calculation of equation (12) sothat the gain value does not become a value less than one.

On the other hand, when the limiting information included in the gaincode string indicates that the gain waveform is to be used forcompression, the limiting processing unit 101 performs calculation ofequation (13) so that the gain value does not become a value greaterthan one.

When the gain waveform is generated through linear interpolation in stepS104 or limiting processing is performed in step S106, the processing instep S107 is performed, and the gain decoding processing ends. Becausethe processing in step S107 is the same as the processing in step S76 inFIG. 9, explanation thereof will be omitted.

As described above, the decoding apparatus 51 performs limitingprocessing on the gain value obtained through non-linear interpolation.By this means, it is possible to perform gain adjustment (volumecorrection) with a more appropriate gain value. It is therefore possibleto obtain sound with higher quality.

Third Embodiment

<Interpolation of Gain Value>

Further, while, in the above description, an example has been describedwhere the gain waveform is obtained while the interpolation scheme forinterpolating the gain value is switched between linear interpolationand non-linear interpolation for each gain sample position, it is alsopossible to employ a configuration where non-linear interpolation isbasically performed, and linear interpolation is performed only underspecific conditions.

For example, a case will be studied where the gain waveform indicatedwith a broken line L41 illustrated in FIG. 12 is encoded, and the gainwaveform is obtained at the decoding side through non-linearinterpolation. It should be noted that FIG. 12 indicates a gain value ona vertical axis and a sample position on a horizontal axis.

It is assumed that, at the encoding apparatus 11, the k-th gain sampleposition G21 and the k+1-th gain sample position G22 are extracted, andthe gain code string including gain values, sample lengths and gaininclination values at these gain sample positions is obtained.

Here, an arrow D21 indicates a gain inclination value s[k] at the gainsample position G21, and an arrow D22 indicates a gain inclination values[k+1] at the gain sample position G22.

It is now assumed that non-linear interpolation using a cubic functionis performed at the decoding apparatus 51 based on the gain values, thesample lengths and the gain inclination values included in the gain codestring, and a gain waveform indicated with a curve C31 is obtained.

In this example, a difference between the gain waveform indicated withthe curve C31 obtained through non-linear interpolation and the gainwaveform indicated with a broken line L41 becomes large.

In a scheme for obtaining a gain waveform through non-linearinterpolation, when a gain waveform whose gain value linearly changes isencoded as with this example, a difference between the original gainwaveform and a gain waveform obtained through non-linear interpolationupon decoding becomes large.

To make this difference small, it is necessary to perform processing(local decoding) of adjusting a gain value and a gain inclination valueto be encoded at the encoding apparatus 11 by calculating the gainwaveform obtained through non-linear interpolation, which increases aprocessing amount of encoding.

Therefore, in the present technology, when non-linear interpolation isperformed at the decoding apparatus 51, by allowing linear interpolationto be performed under specific conditions, a gain waveform is reproducedwith high precision with a less processing amount of encoding.

Specifically, when, for example, a gain value at a sample positionbetween the k-th gain sample position and the k+1-th gain sampleposition is obtained through interpolation, an intersection X[k, k+1] oftwo straight line l[k] and straight line l[k+1] is obtained from gainvalues and gain inclination values at these gain sample positions.

Here, the straight line l[k] is a straight line which passes through thek-th gain sample position (point) on the gain waveform and which hasinclination indicated with the gain inclination value s[k]. That is,when a value of the coordinate in the sample axis direction is the sameas a value of the k-th gain sample position, the straight line l[k] is astraight line which has a gain value g[k] at the k-th gain sampleposition as the value of the coordinate in the gain axis direction andwhich has inclination indicated with the gain inclination value s[k].

In a similar manner, the straight line l[k+1] is a straight line whichpasses through the k+1-th gain sample position and which has inclinationindicated with the gain inclination value s[k+1].

Further, it is determined whether or not a distance between either thek-th gain sample position or the k+1-th gain sample position and theobtained intersection X[k, k+1] is equal to or less than a predeterminedthreshold. In the determination here, it is determined whether, forexample, the following equation (14) holds true.

[Math. 14]

((d_sample[k]≤thre_sample)&&(d_gain[k]≤thre_gain))||((d_sample[k+1]≤thre_sample)&&(d_gain[k+1]thre_gain))  (14)

It should be noted that, in equation (14), d_sample[k] and d_sample[k+1]respectively indicate distances from the k-th gain sample position andthe k+1-th gain sample position to the intersection X[k, k+1] in thesample axis direction. Further, d_gain[k] and d_gain[k+1] respectivelyindicate distances from the k-th gain sample position and the k+1-thgain sample position to the intersection X[k, k+1] in the gain axisdirection, that is, differences of the gain values.

Further, thre_sample and thre_gain respectively indicate a threshold ofa distance in the sample axis direction and a threshold of a distance inthe gain axis direction.

Therefore, in equation (14), when the distance d_sample[k] is equal toor less than thre_sample, and the distance d_gain[k] is equal to or lessthan thre_gain, or when the distance d_sample[k+1] is equal to or lessthan thre_sample and the distance d_gain[k+1] is equal to or less thanthe threshold thre_gain, a distance from the gain sample position to theintersection X[k, k+1] is equal to or less than a threshold.

For example, when the k-th gain sample position is a head position ofthe frame, that is, a sample position of n=0, the distance d_sample[k],the distance d_gain[k], the distance d_sample[k+1] and the distanced_gain[k+1] in equation (14) are respectively obtained using thefollowing equation (15) to equation (18). Further, the thresholdthre_sample and the threshold thre_gain are, for example, the thresholdthre_sample=32 and the threshold thre_gain=0.01.

[Math. 15]

d_sample[k]=abs((g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1]))   (15)

[Math. 16]

d_gain[k]=abs(s[k]×(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1]))   (16)

[Math. 17]

d_sample[k+1]=abs((g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1])−T[k])   (17)

[Math. 18]

d_gain[k+1]=abs(s[k]×(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1])+g[k]−g[k+1])  (18)

It should be noted that, in equation (15) to equation (18), abs(x)indicates that an absolute value of x is obtained.

When it is determined that such a conditional expression indicated withequation (14) holds true, a gain waveform is obtained through linearinterpolation, that is, through calculation of the above-describedequation (1). On the other hand, when the conditional expressionindicated with equation (14) does not hold true, a gain waveform isobtained through non-linear interpolation, that is, through calculationof the above-described equation (4).

For example, as illustrated in FIG. 13, when a gain value at each sampleposition between the gain sample position G31 and the gain sampleposition G32 is obtained through interpolation, whether or not theconditional expression indicated with equation (14) holds true isdetermined by specifying which of a region TR11 and a region TR12 theintersection CP11 is included in. It should be noted that FIG. 13indicates a gain value on a vertical axis and a sample position within aframe of the time series signal on a horizontal axis.

In FIG. 13, the gain sample position G31 indicates the k-th gain sampleposition, and the arrow D31 indicates the gain inclination value s[k] atthe gain sample position G31. Therefore, the straight line L51 is astraight line l[k].

In a similar manner, the gain sample position G32 indicates the k+1-thgain sample position, and the arrow D32 indicates the gain inclinationvalue s[k+1] at the gain sample position G32. Therefore, the straightline L52 is a straight line l[k+1]. The intersection CP11 which is anintersection of the straight line L51 and the straight line L52 is anintersection X[k, k+1].

It is now assumed that the region TR11 has the gain sample position G31in the center and has a length in a vertical direction of 2×thre_gain,and a length in a horizontal direction of 2×thre_sample in the drawing.In a similar manner, it is assumed that the region TR12 has the gainsample position G21 in the center and, has a length in a verticaldirection of 2×thre_gain and a length in a horizontal direction of2×thre_sample in the drawing.

In this case, when the intersection CP11 is located within the regionTR11 or the intersection CP11 is located within the region TR12, theconditional expression indicated with equation (14) holds true. In theexample of FIG. 13, because the intersection CP11 is located within theregion TR12, the conditional expression indicated with equation (14)holds true.

In the example illustrated in FIG. 13, the original gain waveform to bereproduced (restored) should have been a waveform close to a waveformconstituted with the straight line L51 and the straight line L52. Thatis, in more detail, the waveform should have been close to the straightline L51 from the gain sample position G31 to the intersection CP11, andshould have been close to the straight line L52 from the intersectionCP11 to the gain sample position G32.

However, because, in this example, the intersection CP11 is locatedwithin the region TR12, and a distance between the intersection CP11 tothe gain sample position G32 is sufficiently short, it is possible todetermine that the original gain waveform is approximated as a straightline connecting the gain sample position G31 and the gain sampleposition G32.

In this case, because at the gain waveform between the gain sampleposition G31 and the gain sample position G32, the gain value cansubstantially linearly change, it is possible to reproduce the gainwaveform with higher precision by obtaining the gain waveform throughlinear interpolation rather than obtaining the gain waveform throughnon-linear interpolation. Therefore, in the present technology, when theconditional expression indicated with the above-described equation (14)holds true, the gain waveform is obtained through linear interpolation.

Accordingly, in the example of FIG. 13, a gain value at each sampleposition between the gain sample position G31 and the gain sampleposition G32 is obtained through linear interpolation, and, by thismeans, for example, a gain waveform illustrated in FIG. 14 can beobtained. It should be noted that, in FIG. 14, the same referencenumerals as those in FIG. 13 are assigned to portions corresponding tothose in FIG. 13, and explanation thereof will be omitted asappropriate.

In FIG. 14, a straight line L61 connecting the gain sample position G31and the gain sample position G32 is obtained as a gain waveform betweenthe gain sample position G31 and the gain sample position G32.

Further, for example, also in the above-described example illustrated inFIG. 12, because the conditional expression indicated with equation (14)holds true, the gain waveform is obtained through linear interpolation.

In the example of FIG. 12, because the intersection X[k, k+1] is locatedat the gain sample position G22, equation (14) holds true, and astraight line connecting the gain sample position G21 and the gainsample position G22 is set as a gain waveform between the gain samplepositions. Therefore, in this example, the original gain waveform isaccurately reproduced.

As described above, when non-linear interpolation is basically performedwhile linear interpolation is performed under specific conditions, it ispossible to make a difference between the original gain waveform and thedecoded gain waveform smaller without increasing a processing amount ofencoding.

Moreover, by employing such a decoding scheme, because both linearinterpolation and non-linear interpolation can be performed only with ascheme in which non-linear interpolation is performed, it becomesunnecessary to include the interpolation mode information in the gaincode string, so that it is possible to lower a bit rate of the outputcode string. That is, it is possible to reduce a code amount of theoutput code string.

<Configuration Example of Decoding Apparatus>

When linear interpolation is performed under specific conditions, thedecoding apparatus 51 is configured as illustrated in, for example, FIG.15. It should be noted that, in FIG. 15, the same reference numerals asthose in FIG. 7 are assigned to portions corresponding to those in FIG.7, and explanation thereof will be omitted as appropriate.

The decoding apparatus 51 illustrated in FIG. 15 has a differentconfiguration from that of the decoding apparatus 51 in FIG. 7 in thatan operation unit 131 is newly provided at the gain decoding circuit 63and has the same configuration as that of the decoding apparatus 51 inFIG. 7 in other points.

The operation unit 131 performs calculation of the above-describedconditional expression indicated with equation (14).

<Explanation of Gain Decoding Processing>

The gain decoding processing performed when the decoding apparatus 51 isconfigured as illustrated in FIG. 15 will be described next.

For example, while, at the encoding apparatus 11, the encodingprocessing described with reference to FIG. 5 is performed, in the gainencoding processing in step S13, the gain code string only including thegain information and not including the interpolation mode information isgenerated, and the output code string obtained through multiplexing isoutputted. Further, in this case, the gain information always includesthe gain inclination value.

At the decoding apparatus 51, the decoding processing described withreference to FIG. 8 is performed. However, in the gain decodingprocessing corresponding to step S43, the gain decoding processingillustrated in FIG. 16 is performed. The gain decoding processing by thedecoding apparatus 51 in FIG. 15 will be described below with referenceto the flowchart of FIG. 16.

It should be noted that because processing in step S131 is the same asthe processing in step S71 in FIG. 9, explanation thereof will beomitted.

In step S132, the operation unit 131 calculates the conditionalexpression indicated with equation (14) based on the read-out gaininformation.

That is, the operation unit 131 performs the same calculation as theabove-described equation (15) to equation (18) based on the gain value,the sample length and the gain inclination value at the gain sampleposition read out as the gain information. The operation unit 131 thenperforms calculation of equation (14) based on a distance from the gainsample position obtained as a result of the calculation to theintersection X[k, k+1].

This calculation of equation (15) to equation (18) is equivalent toobtaining the straight line l[k] and the straight line l[k+1] andobtaining the intersection X[k, k+1] of these straight lines and,further, obtaining differences between the gain values at the k-th gainsample position and the k+1-th gain sample position and the gain valueat the intersection X[k, k+1]. Further, calculation of the conditionalexpression of equation (14) is equivalent to determining whether or notthe differences between the gain values at the gain sample positions andthe gain value at the intersection X[k, k+1] are equal to or less than apredetermined threshold.

Therefore, at the decoding apparatus 51, it is possible to obtain a gainvalue at each sample position between the two gain sample positionsthrough linear interpolation or non-linear interpolation according tothe differences between the gain values at the gain sample positions andthe gain value at the intersection X[k, k+1].

In step S133, the interpolation processing unit 71 determines whether ornot linear interpolation is performed based on a calculation result ofthe conditional expression in step S132. For example, when theconditional expression indicated with equation (14) holds true, it isdetermined that linear interpolation is performed.

When it is determined in step S133 that linear interpolation isperformed, in step S134, the interpolation processing unit 71 performslinear interpolation to generate a gain waveform, and, then, theprocessing proceeds to step S136. In step S134, the same processing asthe processing in step S74 in FIG. 9 is performed.

On the other hand, when it is determined in step S133 that linearinterpolation is not performed, in step S135, the interpolationprocessing unit 71 performs non-linear interpolation to generate a gainwaveform, and, then, the processing proceeds to step S136. It should benoted that, in step S135, the same processing as the processing in stepS75 in FIG. 9 is performed.

When the gain waveform is generated in step S134 or step S135, theprocessing in step S136 is performed, and the gain decoding processingends. Because the processing in step S136 is the same as the processingin step S76 in FIG. 9, explanation thereof will be omitted.

As described above, the decoding apparatus 51 generates a gain waveformthrough linear interpolation under specific conditions. By this means,it is possible to obtain the original gain waveform with higherprecision with a less processing amount and it is possible to reduce acode amount of the output code string.

Modified Example 1 of Third Embodiment>

<Interpolation of Gain Value>

It should be noted that, while, in the third embodiment, a case has beendescribed where linear interpolation is performed under specificconditions, it is also possible to perform linear interpolation on thegain value by utilizing the gain sample positions and the intersection.

That is, in the third embodiment, a gain value at each sample positionbetween two gain sample positions is calculated through linearinterpolation using equation (1). In the present embodiment, instead, awaveform constituted with straight lines respectively connecting theintersection CP11 of the two straight line L51 and straight line L52 asillustrated in FIG. 17 and two gain sample positions is set as a gainwaveform obtained through linear interpolation. It should be noted that,in FIG. 17, the same reference numerals as those in FIG. 13 are assignedto portions corresponding to those in FIG. 13, and explanation thereofwill be omitted as appropriate.

In this example, a broken line L71 constituted with a straight lineconnecting the gain sample position G31 and the intersection CP11 and astraight line connecting the gain sample position G32 and theintersection CP11 is set as a gain waveform between the gain sampleposition G31 and the gain sample position G32.

In the example of the gain waveform illustrated in FIG. 17, when linearinterpolation is performed with the straight line connecting the twogain sample positions, in order to reproduce the gain waveform moreaccurately, it is necessary to set three or more gain sample positionsin a section between the gain sample position G31 and the gain sampleposition G32 upon encoding of the gain waveform.

That is, if sample positions of the gain sample position G31, theintersection CP11 and the gain sample position G32 are set as the gainsample positions upon encoding of the gain waveform, a difference(error) occurs between the gain waveform before encoded and the gainwaveform obtained through decoding.

On the other hand, when the broken line L71 is set as the gain waveformby utilizing the intersection CP11, by only setting two positions of thegain sample position G31 and the gain sample position G32 as the gainsample positions, it is possible to make a difference between the gainwaveform before encoded and the gain waveform obtained through decodingsmaller. Therefore, in a method in which linear interpolation isperformed while utilizing the intersection, it is possible to reduce thenumber of gain sample positions, and thereby it is possible to suppressa bit rate of the output code string and improve coding efficiency.

It should be noted that, when linear interpolation is performed whileutilizing the intersection, the intersection of the two straight lineshas to be located between the two gain sample positions.

For example, in the example of FIG. 17, the intersection CP11 has to belocated between the gain sample position G31 and the gain sampleposition G32 in the sample axis direction.

Therefore, a region used for determining whether non-linearinterpolation is performed or linear interpolation is performed isdifferent between the example in FIG. 13 and the example in FIG. 17. Inthe example in FIG. 17, when the intersection CP11 is included in eitherthe region TR21 or the region TR22, linear interpolation utilizing theintersection is performed.

Here, the region TR21 is a right half region of the region TR11illustrated in FIG. 13, that is, a region at the right side of theregion TR11 with respect to the gain sample position G31 in FIG. 13. Ina similar manner, the region TR22 is a left half region of the regionTR12 illustrated in FIG. 13, that is, a region at the left side of theregion TR12 with respect to the gain sample position G32 in FIG. 13.

In this manner, when linear interpolation utilizing the intersection isperformed, the conditional expression corresponding to equation (14) isas indicated with the following equation (19). That is, when thefollowing equation (19) holds true, linear interpolation utilizing theintersection is performed.

[Math. 19]

((0<d_sample[k])&&(d_sample[k]≤thre_sample)&&(d_gain[k]thre_gain))||(0<d_sample[k+1])&&(d_sample[k+1]≤thre_sample)&(d_gain[k+1]thre_gain))   (19)

In equation (19), when the distance d_sample[k] is greater than zero,and equal to or less than thre_sample, and the distance d_gain[k] isequal to or less than the threshold thre_gain, or when the distanced_sample[k+1] is greater than zero and equal to or less than thethreshold thre_sample, and the distance d_gain[k+1] is equal to or lessthan the threshold thre_gain, the distance from the gain sample positionto the intersection X[k, k+1] is equal to or less than a threshold.

For example, when the k-th gain sample position is the head position ofthe frame, that is, a sample of n=0, the distance d_sample[k], thedistance d_gain[k], the distance d_sample[k+1] and the distanced_gain[k+1] in equation (19) are respectively obtained using thefollowing equation (20) to equation (23).

[Math. 20]

d_sample[k]=(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1])   (20)

[Math. 21]

d_gain[k]=abs (s[k]×(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1]))   (21)

[Math. 22]

d_sample[k+1]=T[k]−(g[k+1]−g[k]−s[k+1]−T[k])/(s[k]−s[k+1])   (22)

[Math. 23]

d_gain[k+1]=abs(s[k]×(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1])+g[k]−g[k+1])  (23)

When it is determined that the conditional expression indicated withequation (19) does not hold true, a gain waveform is obtained throughnon-linear interpolation, that is, the above-described calculation ofequation (4).

On the other hand, when it is determined that the conditional expressionindicated with equation (19) holds true, a gain waveform is obtainedthrough linear interpolation.

For example, when the k-th gain sample position is the head position ofthe frame, that is, a sample position of n=0, when the sample positionof the intersection X[k, k+1], that is, a sample length from the k-thgain sample position to the intersection X[k, k+1] is set as T′[k], thesample position T′[k] is obtained from the following equation (24).

[Math. 24]

T′[k]=(g[k+1]−g[k]−s[k+1]×T[k])/(s[k]−s[k+1])   (24)

Further, a gain value g_interpolated[n] of the sample n which is locatedbetween the k-th gain sample position and the intersection X[k, k+1] andwhich is the n-th (where 0≤n<T′[k]) sample from the head of the frame iscalculated from the following equation (25).

[Math. 25]

g_interpolated[n]=a1[k]×n+b1[k](0≤n<T′[k])   (25)

It should be noted that, in equation (25), a1[k] and b1[k] are valuesrespectively obtained from the following equation (26) and equation(27).

[Math. 26]

a1[k]=s[k]  (26)

[Math. 27]

b1[k]=g[k]  (27)

a1[k] and b1[k] indicate inclination and intercept of the straight lineconnecting the k-th gain sample position and the intersection X[k, k+1].Therefore, in this example, as described with reference to FIG. 17, itis determined that the gain value linearly changes between the k-th gainsample position G31 and the intersection CP11, and a gain value of eachsample n is obtained through linear interpolation.

Further, a gain value g_interpolated[n] of the sample n which is locatedbetween the intersection X[k, k+1] and the k+1-th gain sample positionand which is the n-th (where T′[k]≤n<T[k]) sample from the head of theframe is calculated from the following equation (28).

[Math. 28]

g_interpolated[n]=a2[k]×n+b2[k](T′[k]≤n<T[k])   (28)

It should be noted that, in equation (28), a2[k] and b2[k] are valuesrespectively obtained from the following equation (29) and equation(30).

[Math. 29]

a2[k]=s[k+1]  (29)

[Math. 30]

b2[k]=g[k+1]−s[k+1]×T[k]  (30)

a2[k] and b2[k] indicate inclination and intercept of the straight lineconnecting the intersection X[k, k+1] and the k+1-th gain sampleposition. Therefore, in this example, as described with reference toFIG. 17, it is determined that the gain value linearly changes betweenthe interception CP11 and the k+1-th gain sample position G32, and again value of each sample n is obtained through linear interpolation.

As described above, when linear interpolation utilizing the intersectionis performed under specific conditions, in the gain decoding processingdescribed with reference to FIG. 16, the operation unit 131 performscalculation of the conditional expression indicated with equation (19)based on the read-out gain information in step S132.

When the conditional expression indicated with equation (19) holds true,in step S134, the interpolation processing unit 71 calculates the sampleposition T′[k] of the intersection X[k, k+1] using equation (24) basedon the gain value, the sample length and the gain inclination value atthe gain sample position read out as the gain information. Further, theinterpolation processing unit 71 performs calculation of equation (25)and equation (28) using the obtained sample position T′[k] and generatesa gain waveform through linear interpolation.

On the other hand, when the conditional expression indicated withequation (19) does not hold true, in step S135, the interpolationprocessing unit 71 performs non-linear interpolation to generate a gainwaveform.

In this manner, by performing linear interpolation utilizing theintersection under specific conditions, it is possible to make adifference between the original gain waveform before encoded and thegain waveform obtained through decoding smaller without increasing aprocessing amount upon encoding.

Further, because both linear interpolation and non-linear interpolationcan be performed only with a scheme in which non-linear interpolation isperformed, it becomes unnecessary to include the interpolation modeinformation in the gain code string, so that it is possible to lower abit rate of the output code string. That is, it is possible to reduce acode amount of the output code string.

Fourth Embodiment

<Explanation of Gain Decoding Processing>

Further, in the third embodiment and modified example 1 of the thirdembodiment, a case has been described where the interpolation modeinformation is not included in the gain code string, and non-linearinterpolation is basically performed.

However, while the interpolation mode information is included in thegain code string, and the gain waveform is basically obtained using aninterpolation scheme indicated in the interpolation mode information,when the interpolation scheme indicated in the interpolation modeinformation is a scheme using non-linear interpolation, linearinterpolation may be performed under specific conditions.

In such a case, at the decoding apparatus 51, the decoding processingdescribed with reference to FIG. 8 is performed. However, in the gaindecoding processing corresponding to step S43, the gain decodingprocessing illustrated in FIG. 18 is performed. The gain decodingprocessing by the decoding apparatus 51 in FIG. 15 will be describedbelow with reference to the flowchart of FIG. 18.

It should be noted that because the processing in step S161 to step S164is the same as the processing in step S71 to step S74 in FIG. 9,explanation thereof will be omitted.

In step S163, when it is determined that the scheme is a scheme usingnon-linear interpolation, in step S165, the operation unit 131 performscalculation of the conditional expression indicated with equation (14)based on the read-out gain information.

Then, while the processing in step S166 to step S168 is performed,because these processing is the same as the processing in step S133 tostep S135 in FIG. 16, explanation thereof will be omitted. It should benoted that, from step S165 to step S168, the processing described in thethird embodiment may be performed, or processing described in modifiedexample 1 of the third embodiment may be performed. Further, whennon-linear interpolation is performed, limiting processing may beperformed.

When a gain waveform is generated through interpolation in step S164,step S167 or step S168, the processing then proceeds to step S169.

In step S169, the gain decoding circuit 63 determines whether or notprocessing is performed for all the gain sample positions.

When it is determined in step S169 that not all of the gain samplepositions is processed, the processing returns to step S161, and theabove-described processing is repeated.

On the other hand, when it is determined in step S169 that all of thegain sample positions are processed, the gain decoding circuit 63supplies the gain waveform corresponding to one frame constituted withgain values at the sample positions obtained through the processing sofar to the gain applying circuit 64, and the gain decoding processingends. When the gain decoding processing ends, the processing thenproceeds to step S44 in FIG. 8.

As described above, the decoding apparatus 51 obtains a gain waveformthrough linear interpolation or non-linear interpolation according tothe interpolation mode information. By obtaining the gain waveformthrough non-linear interpolation as appropriate in this manner accordingto the interpolation mode information, it is possible to reproduce again waveform with high precision with a less code amount.

Moreover, even when the interpolation scheme indicated in theinterpolation mode information is a scheme using non-linearinterpolation, by performing linear interpolation under specificconditions, it is possible to reproduce the original gain waveform withhigher precision with a less processing amount of encoding. Further, itis possible to reduce a code amount of the output code string.

The series of processes described above can be executed by hardware butcan also be executed by software. When the series of processes isexecuted by software, a program that constructs such software isinstalled into a computer. Here, the expression “computer” includes acomputer in which dedicated hardware is incorporated and ageneral-purpose personal computer or the like that is capable ofexecuting various functions when various programs are installed.

FIG. 19 is a block diagram showing a hardware configuration example of acomputer that performs the above-described series of processing using aprogram.

In such computer, a CPU (Central Processing Unit) 501, a ROM (Read OnlyMemory) 502, and a RAM (Random Access Memory) 503 are connected to oneanother by a bus 504.

An input/output interface 505 is also connected to the bus 504. An inputunit 506, an output unit 507, a recording unit 508, a communication unit509, and a drive 510 are connected to the input/output interface 505.

The input unit 506 is configured from a keyboard, a mouse, a microphone,an imaging device or the like. The output unit 507 is configured from adisplay, a speaker or the like. The recording unit 508 is configuredfrom a hard disk, a non-volatile memory or the like. The communicationunit 509 is configured from a network interface or the like. The drive510 drives a removable medium 511 such as a magnetic disk, an opticaldisk, a magneto-optical disk, a semiconductor memory or the like.

In the computer configured as described above, as one example the CPU501 loads a program recorded in the recording unit 508 via theinput/output interface 505 and the bus 504 into the RAM 503 and executesthe program to carry out the series of processes described earlier.

Programs to be executed by the computer (the CPU 501) are provided beingrecorded in the removable medium 511 which is a packaged medium or thelike. Also, programs may be provided via a wired or wirelesstransmission medium, such as a local area network, the Internet ordigital satellite broadcasting.

In the computer, by loading the removable recording medium 511 into thedrive 510, the program can be installed into the recording unit 508 viathe input/output interface 505. It is also possible to receive theprogram from a wired or wireless transfer medium using the communicationunit 509 and install the program into the recording unit 508. As anotheralternative, the program can be installed in advance into the ROM 502 orthe recording unit 508.

It should be noted that the program executed by a computer may be aprogram that is processed in time series according to the sequencedescribed in this specification or a program that is processed inparallel or at necessary timing such as upon calling.

An embodiment of the present technology is not limited to theembodiments described above, and various changes and modifications maybe made without departing from the scope of the present technology.

For example, the present technology can adopt a configuration of cloudcomputing which processes by allocating and connecting one function by aplurality of apparatuses through a network.

Further, each step described by the above mentioned flow charts can beexecuted by one apparatus or by allocating a plurality of apparatuses.

In addition, in the case where a plurality of processes is included inone step, the plurality of processes included in this one step can beexecuted by one apparatus or by allocating a plurality of apparatuses.

The advantageous effects described herein are not limited, but merelyexamples. Any other advantageous effects may also be attained.

Additionally, the present technology may also be configured as below.

(1)

A decoding apparatus including:

a gain readout unit configured to read out encoded gain values at atleast two gain sample positions of a time series signal;

an interpolation information readout unit configured to read outinterpolation information indicating whether the gain value at eachsample position of the time series signal is obtained through linearinterpolation or obtained through non-linear interpolation; and

an interpolation processing unit configured to obtain the gain value ateach sample position located between the two gain sample positions ofthe time series signal based on the gain values at the gain samplepositions through linear interpolation or non-linear interpolationaccording to the interpolation information.

(2)

The decoding apparatus according to (1),

wherein the gain readout unit further reads out gain inclination valuesindicating inclination of the gain values at the gain sample positions,and

wherein, when the gain value is obtained through non-linearinterpolation, the interpolation processing unit obtains the gain valueat each sample position located between the two gain sample positionsbased on the gain values and the gain inclination values at the gainsample positions.

(3)

The decoding apparatus according to (1) or (2), further including:

a limiting processing unit configured to perform limiting processing onthe gain value obtained through non-linear interpolation so that thegain value becomes a value equal to or greater than a predeterminedlower limit or a value equal to or less than a predetermined upperlimit.

(4)

The decoding apparatus according to (3),

wherein the limiting processing unit performs limiting processing usingzero as the lower limit, limiting processing using one as the lowerlimit or limiting processing using one as the upper limit.

(5)

The decoding apparatus according to any one of (2) to (4), furtherincluding:

an operation unit configured to obtain at the gain sample positions,straight lines having the gain values at the gain sample positions andhaving inclination indicated by the gain inclination values at the gainsample positions, and obtain differences between a gain value at anintersection of the straight lines obtained for the two gain samplepositions and the gain values at the two gain sample positions,

wherein, when the interpolation information is information indicatingthat the gain value is obtained through linear interpolation, theinterpolation processing unit obtains the gain value through linearinterpolation, and, when the interpolation information is informationindicating that the gain value is obtained through non-linearinterpolation, the interpolation processing unit obtains the gain valuethrough non-linear interpolation or linear interpolation according tothe differences.

(6)

A decoding method including the steps of:

reading out encoded gain values at at least two gain sample positions ofa time series signal;

reading out interpolation information indicating whether the gain valueat each sample position of the time series signal is obtained throughlinear interpolation or obtained through non-linear interpolation; and

obtaining the gain value at each sample position located between the twogain sample positions of the time series signal based on the gain valuesat the gain sample positions through linear interpolation or non-linearinterpolation according to the interpolation information.

(7)

A program causing a computer to execute processing including the stepsof: reading out encoded gain values at at least two gain samplepositions of a time series signal;

reading out interpolation information indicating whether the gain valueat each sample position of the time series signal is obtained throughlinear interpolation or obtained through non-linear interpolation; and

obtaining the gain value at each sample position located between the twogain sample positions of the time series signal based on the gain valuesat the gain sample positions through linear interpolation or non-linearinterpolation according to the interpolation information.

(8)

A decoding apparatus including:

a gain readout unit configured to read out encoded gain values at atleast two gain sample positions of a time series signal and gaininclination values indicating inclination of the gain values;

an operation unit configured to obtain at the gain sample positions,straight lines having the gain values at the gain sample positions andhaving inclination indicated by the gain inclination values at the gainsample positions, and obtain differences between a gain value at anintersection of the straight lines obtained for the two gain samplepositions and the gain values at the two gain sample positions; and

an interpolation processing unit configured to obtain the gain value ateach sample position located between the two gain sample positions ofthe time series signal through linear interpolation or non-linearinterpolation according to the differences.

(9)

A decoding method including the steps of:

reading out encoded gain values at at least two gain sample positions ofa time series signal and gain inclination values indicating inclinationof the gain values;

obtaining at the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions, and obtainingdifferences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions; and

obtaining the gain value at each sample position located between the twogain sample positions of the time series signal through linearinterpolation or non-linear interpolation according to the differences.

(10)

A program causing a computer to execute processing including the stepsof:

reading out encoded gain values at at least two gain sample positions ofa time series signal and gain inclination values indicating inclinationof the gain values;

obtaining at the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions and obtainingdifferences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions; and

obtaining the gain value at each sample position located between the twogain sample positions of the time series signal through linearinterpolation or non-linear interpolation according to the differences.

REFERENCE SIGNS LIST

-   51 decoding apparatus-   61 demultiplexing circuit-   62 signal decoding circuit-   63 gain decoding circuit-   64 gain applying circuit-   71 interpolation processing unit-   101 limiting processing unit-   131 operation unit

1. A decoding apparatus comprising: a gain readout unit configured toread out encoded gain values at at least two gain sample positions of atime series signal; an interpolation information readout unit configuredto read out interpolation information indicating whether the gain valueat each sample position of the time series signal is obtained throughlinear interpolation or obtained through non-linear interpolation; andan interpolation processing unit configured to obtain the gain value ateach sample position located between the two gain sample positions ofthe time series signal based on the gain values at the gain samplepositions through linear interpolation or non-linear interpolationaccording to the interpolation information.
 2. The decoding apparatusaccording to claim 1, wherein the gain readout unit further reads outgain inclination values indicating inclination of the gain values at thegain sample positions, and wherein, when the gain value is obtainedthrough non-linear interpolation, the interpolation processing unitobtains the gain value at each sample position located between the twogain sample positions based on the gain values and the gain inclinationvalues at the gain sample positions.
 3. The decoding apparatus accordingto claim 1, further comprising: a limiting processing unit configured toperform limiting processing on the gain value obtained throughnon-linear interpolation so that the gain value becomes a value equal toor greater than a predetermined lower limit or a value equal to or lessthan a predetermined upper limit.
 4. The decoding apparatus according toclaim 3, wherein the limiting processing unit performs limitingprocessing using zero as the lower limit, limiting processing using oneas the lower limit or limiting processing using one as the upper limit.5. The decoding apparatus according to claim 2, further comprising: anoperation unit configured to obtain at the gain sample positions,straight lines having the gain values at the gain sample positions andhaving inclination indicated by the gain inclination values at the gainsample positions, and obtain differences between a gain value at anintersection of the straight lines obtained for the two gain samplepositions and the gain values at the two gain sample positions, wherein,when the interpolation information is information indicating that thegain value is obtained through linear interpolation, the interpolationprocessing unit obtains the gain value through linear interpolation,and, when the interpolation information is information indicating thatthe gain value is obtained through non-linear interpolation, theinterpolation processing unit obtains the gain value through non-linearinterpolation or linear interpolation according to the differences.
 6. Adecoding method comprising the steps of: reading out encoded gain valuesat at least two gain sample positions of a time series signal; readingout interpolation information indicating whether the gain value at eachsample position of the time series signal is obtained through linearinterpolation or obtained through non-linear interpolation; andobtaining the gain value at each sample position located between the twogain sample positions of the time series signal based on the gain valuesat the gain sample positions through linear interpolation or non-linearinterpolation according to the interpolation information.
 7. A programcausing a computer to execute processing including the steps of: readingout encoded gain values at at least two gain sample positions of a timeseries signal; reading out interpolation information indicating whetherthe gain value at each sample position of the time series signal isobtained through linear interpolation or obtained through non-linearinterpolation; and obtaining the gain value at each sample positionlocated between the two gain sample positions of the time series signalbased on the gain values at the gain sample positions through linearinterpolation or non-linear interpolation according to the interpolationinformation.
 8. A decoding apparatus comprising: a gain readout unitconfigured to read out encoded gain values at at least two gain samplepositions of a time series signal and gain inclination values indicatinginclination of the gain values; an operation unit configured to obtainat the gain sample positions, straight lines having the gain values atthe gain sample positions and having inclination indicated by the gaininclination values at the gain sample positions, and obtain differencesbetween a gain value at an intersection of the straight lines obtainedfor the two gain sample positions and the gain values at the two gainsample positions; and an interpolation processing unit configured toobtain the gain value at each sample position located between the twogain sample positions of the time series signal through linearinterpolation or non-linear interpolation according to the differences.9. A decoding method comprising the steps of: reading out encoded gainvalues at at least two gain sample positions of a time series signal andgain inclination values indicating inclination of the gain values;obtaining at the gain sample positions, straight lines having the gainvalues at the gain sample positions and having inclination indicated bythe gain inclination values at the gain sample positions, and obtainingdifferences between a gain value at an intersection of the straightlines obtained for the two gain sample positions and the gain values atthe two gain sample positions; and obtaining the gain value at eachsample position located between the two gain sample positions of thetime series signal through linear interpolation or non-linearinterpolation according to the differences.
 10. A program causing acomputer to execute processing including the steps of: reading outencoded gain values at at least two gain sample positions of a timeseries signal and gain inclination values indicating inclination of thegain values; obtaining at the gain sample positions, straight lineshaving the gain values at the gain sample positions and havinginclination indicated by the gain inclination values at the gain samplepositions and obtaining differences between a gain value at anintersection of the straight lines obtained for the two gain samplepositions and the gain values at the two gain sample positions; andobtaining the gain value at each sample position located between the twogain sample positions of the time series signal through linearinterpolation or non-linear interpolation according to the differences.